import request from '@/utils/request'

// 查询练习答题结果列表
export function listPracticeAnswer(query) {
  return request({
    url: '/exam/practiceAnswer/list',
    method: 'get',
    params: query
  })
}

// 查询练习答题结果详细
export function getPracticeAnswer(answerId) {
  return request({
    url: '/exam/practiceAnswer/' + answerId,
    method: 'get'
  })
}

// 新增练习答题结果
export function addPracticeAnswer(data) {
  return request({
    url: '/exam/practiceAnswer',
    method: 'post',
    data: data
  })
}

// 修改练习答题结果
export function updatePracticeAnswer(data) {
  return request({
    url: '/exam/practiceAnswer',
    method: 'put',
    data: data
  })
}

// 删除练习答题结果
export function delPracticeAnswer(answerId) {
  return request({
    url: '/exam/practiceAnswer/' + answerId,
    method: 'delete'
  })
}

// 导出练习答题结果
export function exportPracticeAnswer(query) {
  return request({
    url: '/exam/practiceAnswer/export',
    method: 'get',
    params: query
  })
}